package com.hyt.it.ogt.data.mapper.kw;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.data.model.entity.kw.ExamPaper;

/**
 * <p>
 * 考试-试卷 Mapper 接口
 * </p>
 *
 * @author 刘恒活
 * @since 2020-05-15
 */
public interface ExamPaperMapper extends BaseMapper<ExamPaper> {

    /**
     * 统计试卷（活试卷包）下是否包含有主观题
     * @param examId
     * @param paperId
     * @param paperVersion
     * @return
     */
    int countPackageSubjectiveItemNumber(String examId, String paperId, String paperVersion);
    
    /**
     * 根据考试ID获取考试的所有的试卷
     * @param examId
     * @return
     */
    List<ExamPaper> getExamPapersByExamId(String examId);

}
